package shizhan;

import java.io.Serializable;

public class shizhan1 extends shizhan1_extends implements Serializable {
    private String name;
    static final int age=30;

    static final int getAge(){return age;}

    public shizhan1() {
    }

    public shizhan1(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public void cry(){
        System.out.println(name+"在哭");
    }
    public void sayHello(){
        System.out.println(toString());
    }
    @Override
    public String toString() {
        return "shizhan1{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
